package com.design.composite;

/**
 * @author leali
 * @title: AbstractFile
 * @projectName design
 * @description: 抽象文件类：抽象构件
 * @date 2022/1/2 22:45
 */
public abstract class AbstractFile {
    public abstract void add(AbstractFile file);

    public abstract void remove(AbstractFile file);

    public abstract AbstractFile getChild(int i);

    public void testFile(AbstractFile file) {
        System.out.println("测试-透明组合模式");
    }

    public abstract void killVirus();
}
